#include "player.hpp"

Player::Player():continu(0),score(0),pseudo(""),life(3)
{
}

Player::~Player()
{
}

int Player::get_continu()
{
  return continu;
}

int Player::get_score()
{
  return score;
}

string Player::get_pseudo()
{
  return pseudo;
}

int Player::get_life()
{
  return life;
}

void Player::set_life(int l)
{
  life=l;
}

void Player::set_continu(int c)
{
  continu=c;
}

void Player::set_score(int s)
{
  score=s;
}

void Player::set_pseudo(string p)
{
  pseudo=p;
}

bool Player::a_continu()
{
  return continu!=0;
}

void Player::add_continu()
{
  ++continu;
}

bool Player::a_pseudo()
{
  return pseudo!="";
}

void Player::reset_life()
{
  life=3;
}
